<?php 
	include_once 'thuvienham.php';
	include_once 'lophocloai_db.php';

	class lophocloai_bs 
	{
		//------------------Fields [4]------------------
			// #1
		private $MaLoaiLop = "";
		public function SetMaLoaiLop($MaLoaiLop)   { $this->MaLoaiLop = $MaLoaiLop;   }
		public function GetMaLoaiLop()             { return $this->MaLoaiLop;         }
			// #2
		private $TenLoaiLop = "";
		public function SetTenLoaiLop($TenLoaiLop) { $this->TenLoaiLop = $TenLoaiLop; }
		public function GetTenLoaiLop()            { return $this->TenLoaiLop;        }
			// #3
		private $SoTiet = -1;
		public function SetSoTiet($SoTiet)         { $this->SoTiet = $SoTiet;         }
		public function GetSoTiet()                { return $this->SoTiet;            }
			// #4
		private $GhiChu = "";
		public function SetGhiChu($GhiChu)         { $this->GhiChu = $GhiChu;         }
		public function GetGhiChu()                { return $this->GhiChu;            }

		//------------------Method------------------
		public function Them()
		{
			$data = new lophocloai_db() ;
			return $data->Them($this->MaLoaiLop, $this->TenLoaiLop, $this->SoTiet, $this->GhiChu);
		}

		public function Xoa()
		{
			$data = new lophocloai_db() ;
			return $data->Xoa($this->MaLoaiLop);
		}

		public function CapNhat()
		{
			$data = new lophocloai_db() ;
			return $data->CapNhat($this->MaLoaiLop, $this->TenLoaiLop, $this->SoTiet, $this->GhiChu);
		}

		public function LayDanhSach()
		{
			$data = new lophocloai_db() ;
			return $data->LayDanhSach($this->MaLoaiLop, $this->TenLoaiLop, $this->SoTiet, $this->GhiChu);
		}

	}

